package com.sise.cn.task.service.impl;

import com.sise.cn.task.service.AbstractTaskSender;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author 龚秀峰
 * @version 1.0
 * @date 2020/6/8 20:50
 */
@Slf4j
@Configuration
public class MessageSend extends AbstractTaskSender {

    @Override
    protected Message setMessageInfo(Message message) {
        message.getMessageProperties().setContentType("application/json");
        return message;
    }
}
